package cn.shadow.message;

import cn.shadow.service.Services;
import io.netty.channel.Channel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class MessageWorkerFactory implements WorkerFactory {
    @Autowired
    Services services;

    @Override
    public Worker newWorker(Channel channel) {
        return new MessageWorker(channel, services);
    }


}
